interface AppInfo {
  pid: string | undefined;
  key: string;
  component: string;
  componentPath: string;
  icon: string;
  title: string;
  iconColor: string;
  iconBgColor: string;
  width: number;
  height: number;
  disableResize: boolean;
  hideInDesktop: boolean;
  hideWhenClose: boolean | undefined;
  keepInDock: boolean;
  menu: AppInfoMenu[];
  mustAdmin?: boolean;
}
interface AppInfoMenu {
  key: string;
  title: string;
  sub: AppInfoMenu[];
}

export default {
  allAppList: <AppInfo[]>[
    {
      pid: "",
      key: "system_about",
      component: "SystemAbout",
      componentPath: "system/about",
      icon: "icon-question",
      title: "关于本站",
      iconColor: "#fff",
      iconBgColor: "#23282d",
      width: 400,
      height: 250,
      disableResize: true,
      hideInDesktop: true,
      menu: [
        {
          key: "about",
          title: "关于",
          sub: [
            {
              key: "close",
              title: "关闭",
            },
          ],
        },
        {
          key: "help",
          title: "帮助",
          sub: [
            {
              key: "send",
              title: "发送反馈",
            },
          ],
        },
      ],
    },
    {
      key: "system_finder",
      component: "SystemFinder",
      componentPath: "system/finder",
      icon: "icon-MIS_chanpinshezhi",
      title: "访达",
      iconColor: "#fff",
      iconBgColor: "#db5048",
      width: 800,
      height: 600,
      keepInDock: true,
      menu: [
        {
          key: "finder",
          title: "访达",
          sub: [
            {
              key: "about",
              title: "关于 访达",
            },
            {
              isLine: true,
            },
            {
              key: "setting",
              title: "首选项",
            },
            {
              isLine: true,
            },
            {
              key: "close",
              title: "退出 访达",
            },
          ],
        },
        {
          key: "window",
          title: "文件",
          sub: [
            {
              key: "uploadFile",
              title: "上传文件",
            },
            {
              key: "createFolder",
              title: "新建目录",
            },
            {
              key: "downloadTelegra",
              title: "下载电报图集",
            },
          ],
        },
        // {
        //   key: "help",
        //   title: "帮助",
        //   sub: [
        //     {
        //       key: "send",
        //       title: "发送反馈",
        //     },
        //   ],
        // },
      ],
    },
    {
      key: "system_launchpad",
      component: "SystemLaunchPad",
      icon: "icon-shezhi",
      title: "启动台",
      iconColor: "#333",
      iconBgColor: "#d4dbef",
      width: 500,
      height: 300,
      hideInDesktop: true,
      keepInDock: true,
    },
    {
      key: "system_setting",
      component: "SystemSetting",
      componentPath: "system/setting",
      icon: "icon-setting",
      title: "系统偏好设置",
      iconColor: "#fff",
      iconBgColor: "#23282d",
      width: 800,
      height: 600,
      disableResize: true,
      hideInDesktop: true,
      keepInDock: true,
      menu: [
        {
          key: "setting",
          title: "系统偏好设置",
          sub: [
            {
              key: "close",
              title: "关闭",
            },
          ],
        },
        {
          key: "help",
          title: "帮助",
          sub: [
            {
              key: "send",
              title: "发送反馈",
            },
          ],
        },
      ],
    },
    {
      key: "system_store",
      component: "SystemStore",
      componentPath: "system/store",
      icon: "icon-store",
      title: "应用商店",
      iconColor: "#fff",
      iconBgColor: "#23282d",
      width: 800,
      height: 600,
      disableResize: true,
      hideInDesktop: true,
      keepInDock: true,
      menu: [
        {
          key: "store",
          title: "应用商店",
          sub: [
            {
              key: "about",
              title: "关于 应用商店",
            },
            {
              isLine: true,
            },
            {
              key: "setting",
              title: "首选项",
            },
            {
              isLine: true,
            },
            {
              key: "close",
              title: "退出 应用商店",
            },
          ],
        },
        {
          key: "window",
          title: "窗口",
          sub: [
            {
              key: "min",
              title: "最小化",
            },
            {
              key: "max",
              title: "最大化",
            },
          ],
        },
        {
          key: "help",
          title: "帮助",
          sub: [
            {
              key: "send",
              title: "发送反馈",
            },
          ],
        },
      ],
    },
    {
      key: "system_task",
      component: "SystemTask",
      componentPath: "system/task",
      icon: "icon-icon_roundclose_fill",
      title: "强制退出",
      iconColor: "#fff",
      iconBgColor: "#333",
      width: 300,
      height: 400,
      disableResize: true,
      hideInDesktop: true,
      menu: [
        {
          key: "task",
          title: "TASK",
          sub: [
            {
              key: "close",
              title: "关闭",
            },
          ],
        },
        {
          key: "help",
          title: "帮助",
          sub: [
            {
              key: "send",
              title: "发送反馈",
            },
          ],
        },
      ],
    },
    {
      key: "demo_demo",
      component: "Demo",
      componentPath: "demo/demo",
      icon: "icon-MIS_chanpinshezhi",
      title: "DEMO",
      iconColor: "#fff",
      iconBgColor: "#db5048",
      width: 600,
      height: 400,
      keepInDock: true,
    },
    // {
    //   key: "demo_github",
    //   icon: "icon-github",
    //   title: "Github仓库",
    //   iconColor: "rgb(36,41,46)",
    //   iconBgColor: "#eee",
    //   keepInDock: true,
    //   outLink: true,
    //   url: "https://github.com/HammCn/MacOS-Web-UI",
    // },
    // {
    //   key: "demo_gitee",
    //   icon: "icon-gitee",
    //   title: "Gitee仓库",
    //   iconColor: "#fff",
    //   iconBgColor: "rgb(199,29,35)",
    //   keepInDock: true,
    //   outLink: true,
    //   url: "https://gitee.com/hamm/mac-ui",
    // },
    // {
    //   key: "demo_dy",
    //   component: "DemoWeb",
    //   icon: "icon-video_fill",
    //   title: "抖音去水印",
    //   iconColor: "#fff",
    //   iconBgColor: "rgb(33,179,81)",
    //   width: 600,
    //   height: 600,
    //   innerLink: true,
    //   url: "https://dy.hamm.cn/",
    // },
    {
      key: "demo_dock",
      component: "DemoDock",
      componentPath: "demo/dock",
      icon: "icon-MIS_bangongOA",
      title: "常驻Dock应用",
      iconColor: "#fff",
      iconBgColor: "#022732",
      width: 420,
      height: 350,
      keepInDock: true,
    },
    {
      key: "demo_unresize",
      component: "DemoUnResize",
      componentPath: "demo/unresize",
      icon: "icon-smallscreen_fill",
      title: "固定尺寸应用",
      iconColor: "#fff",
      iconBgColor: "#1573fa",
      width: 600,
      height: 400,
      disableResize: true,
    },
    {
      key: "demo_unclose",
      component: "DemoUnClose",
      componentPath: "demo/unclose",
      icon: "icon-wechat-fill",
      title: "无法彻底关闭",
      iconColor: "#fff",
      iconBgColor: "#24dc72",
      width: 610,
      height: 430,
      hideWhenClose: true,
    },
    {
      key: "demo_hidedesktop",
      component: "DemoHideDesktop",
      componentPath: "demo/hidedesktop",
      icon: "icon-shezhi",
      title: "不在桌面显示",
      iconColor: "#333",
      iconBgColor: "#d4dbef",
      width: 500,
      height: 300,
      hideInDesktop: true,
      keepInDock: true,
    },
    {
      key: "demo_colorfull",
      component: "DemoColorFull",
      componentPath: "demo/colorfull",
      icon: "icon-changyongtubiao-mianxing-86",
      title: "花里胡哨",
      iconColor: "#fff",
      iconBgColor: "#ff4500",
      width: 420,
      height: 310,
      titleBgColor: "#ff4500",
      titleColor: "#fff",
    },
    {
      key: "demo_camera",
      component: "DemoCamera",
      componentPath: "demo/camera",
      icon: "icon-camera1",
      title: "Photo Booth",
      iconColor: "#fff",
      iconBgColor: "#E24637",
      width: 540,
      height: 540,
      disableResize: true,
    },
    {
      key: "video_player",
      component: "VideoPlayer",
      componentPath: "system/videoPlayer",
      icon: "icon-camera1",
      title: "视频播放",
      iconColor: "#fff",
      iconBgColor: "#E24637",
      width: 800,
      height: 450,
      disableResize: false,
      hideInDesktop: true,
    },
    {
      key: "account_manage",
      component: "Account",
      componentPath: "system/account",
      icon: "icon-user",
      title: "账号管理",
      iconColor: "#fff",
      iconBgColor: "#E24637",
      width: 800,
      height: 450,
      disableResize: false,
      mustAdmin: true,
      menu: [
        {
          key: "manage",
          title: "管理",
          sub: [
            {
              key: "add_account",
              title: "新增账号",
            },
            {
              key: "modify_password",
              title: "修改密码",
            },
            {
              key: "folder_permission",
              title: "目录权限",
            },
            {
              isLine: true,
            },
            {
              key: "del_account",
              title: "删除账号",
            },
          ],
        },
      ],
    },
    {
      key: "log_monit",
      component: "LogMonit",
      componentPath: "system/logMonit",
      icon: "icon-changyongtubiao-xianxingdaochu-zhuanqu-18",
      title: "实时日志",
      iconColor: "#fff",
      iconBgColor: "#E24637",
      width: 800,
      height: 450,
      disableResize: false,
      hideInDesktop: false,
      keepInDock: true,
      hideWhenClose: true,
    },
    {
      key: "icon_font",
      component: "IconFont",
      componentPath: "system/iconfont",
      icon: "icon-tag",
      title: "字体图标",
      iconColor: "#fff",
      iconBgColor: "#E24637",
      width: 800,
      height: 450,
      disableResize: false,
      hideInDesktop: false,
      keepInDock: false,
    },
    {
      key: "SpareTimeWorker",
      component: "SpareTimeWorker",
      componentPath: "system/spareTimeWorker",
      icon: "icon-task",
      title: "定时任务",
      iconColor: "#fff",
      iconBgColor: "#E24637",
      width: 800,
      height: 450,
      disableResize: false,
      hideInDesktop: false,
      keepInDock: false,
      mustAdmin: true,
    },
    {
      key: "Wallhaven",
      component: "Wallhaven",
      componentPath: "system/wallhaven",
      icon: "icon-picture_fill",
      title: "壁纸下载",
      iconColor: "#fff",
      iconBgColor: "#24dc72",
      width: 980,
      height: 646,
      disableResize: false,
      hideInDesktop: false,
      keepInDock: false,
    },
  ],
};
